<template>
  <div>
      <jum-botron :list="Alldata" :schoolname="school"></jum-botron>
  </div>
</template>

<script>
import JumBotron from './components/Jumbotron'
import axios from 'axios'
export default {
  name: 'Detail',
  components: {
    JumBotron
  },
  data () {
    return {
      Alldata: [],
      school: ''
    }
  },
  methods: {
    getDetailInfo () {
      axios.get(' http://127.0.0.1:5000/')
        .then(this.getDetailInfoSucc)
    },
    getDetailInfoSucc (res) {
      this.Alldata = res.data
      this.school = this.$route.params.schoolname
      console.log(this.school)
    }
  },
  mounted () {
    this.getDetailInfo()
  }
}
</script>
<style>

</style>
